<?php

$rows = array( array('仓库','材料编号','材料名称','品牌','规格','单位', '结存数量','实盘数量','差异','备注', ) );
if($list) foreach($list as $ware){
	$tmp = array($ware['warehouse_name'], $ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'], $ware['amount'], '','','');
	$rows[] = $tmp;
}
Exporter::csv($rows, '库存盘点');

?>